<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>
<script></script>

<head>
    <title>丰富的样式</title>
</head>

<body>

    <!-- 根据具体属性值选择 -->
    <a href="http://www.w3school.com.cn/about_us.asp">w3school</a>
    

</body>
<style>
    a:link {
        color: #000000;
    }

    /* 未访问链接*/
    a:visited {
        color: #00FF00;
    }

    /* 已访问链接 */
    a:hover {
        color: #FF00FF;
    }

    /* 鼠标移动到链接上 */
    a:active {
        color: #0000FF;
    }

    /* 鼠标点击时 */
</style>

</html>